# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corepad
pkgver=4.5.0
pkgrel=0
pkgdesc="A document editor from C-Suite"
arch="all"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/corepad/-/archive/v$pkgver/corepad-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No tests

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
c4def9230dff75e8f2cbd75554271fdfa170cda94156ff0154c23d2fb3857ec957cb68307ac5c1be8887e198188d1bcd43cf6050f347a1754ec5018f4fdf7401  corepad-4.5.0.tar.gz
"
